function onPageReady() {
    ajax({
        url: "/api/home/getHomePageInfo",
        type: "get",
        dataType: "json",
        headers: {},
        success: function (result) {
            $('.main').render('#banner', {}, 'prepend');
            for (var i in result.data.homeNews) {
                $(".banList").render("#banList", result.data.homeNews[i]);
                $(".fomW>div").render("#fomW", result.data.homeNews[i]);
            }
            $(".banner").swBanner();
            initPreview('.banner-img',true);
        }
    });
}